import request from '../index'

interface ISupp {
    suName:string,
    suLeader:string,
    suPhone:string,
    suPlace:string,
    suConStart:string,
    suConEnd:string,
    Id?:number
}

export interface IPage {
    page:number,
    pageSize?:number
}

// 获取用户信息
export function getSuppInfo(pageConfig:IPage,name?:string){
    return request({
        url:'/busi/sup/info',
        data:{
            name,
            pageConfig
        }
    })
}
export function addtSuppInfo(supp:ISupp){
    return request({
        url:'/busi/sup/add',
        data:supp
    })
}
export function editSuppInfo(supp:ISupp){
    return request({
        url:'/busi/sup/edit',
        data:supp
    })
}

export function delSUppInfo(Id:number){
    return request({
        url:'/busi/sup/delete',
        data:{
            Id
        }
    })
}
